package rmaqlc31.basic;

import java.util.Scanner;

public class J04_Tax {

	public static void main(String[] args) {
		
		
		Scanner sc = null;
		int pay;
		int marry;
		
		
		
		sc = new Scanner(System.in);
		
		System.out.println("미혼인 경우는 1, 결혼한 경우는 2 : ");
	    marry = sc.nextInt();
		System.out.println("연봉을 입력하세요 : ");
	    pay = sc.nextInt();
	    
	    
	    sc.close();
	    
	    switch((int)marry){
	    	case 1 : {
	    		if(marry==1&&pay<3000){System.out.println("tax = "+pay/100*10);}
	    		else{System.out.println("tax = "+pay/100*25);}}break;
	    	default : {
	    		if(marry==2&&pay<6000){System.out.println("tax = "+pay/100*15);}
	    		else{System.out.println("tax = "+pay/100*35);}}
	    }
		
		
		

	}

}
